package ru.study.thinkin.chapter13;

import java.util.List;

public interface Robot {
	String getName();
	String getModel();
	List<Operation> getOperations();
	
	class TestRobot {
		public static void test(Robot r) {
			if (r instanceof Null) {
				System.out.println("[Null Robot]");				
			}
			System.out.println("Название "+ r.getName());
			System.out.println("Модель " + r.getModel());
			for(Operation operation :r.getOperations()) {
				System.out.println(operation.description());
				operation.command();
			}
		}
	}
}
